package com.batis.jdbc;

import java.sql.*;

/**
 * @author carter
 * create time    2018-08-17
 */
public class JdbcImp {


    public void query()
    {

        try {
            Class.forName("com.mysql.jdbc.Driver");

            Connection connection = DriverManager.getConnection("", "", "");


            Statement statement = connection.createStatement();

            ResultSet resultSet = statement.executeQuery("select * from  user ");


            while (resultSet.next())
            {

            }


        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (SQLException e) {
            e.printStackTrace();
        }


    }

}
